﻿using System;

namespace AspDotNet.EasyUI.Commonlibs
{
    public static class StringExtension
    {
        /// <summary>
        /// 获取候选对象
        /// </summary>
        /// <param name="value">主值</param>
        /// <param name="predict">候选值</param>
        /// <returns></returns>
        public static string Predict(this string value, string predict) => !string.IsNullOrWhiteSpace(value) ? value : predict;
    }
}
